export default {
  tree_partner: {
    _odoo_model: 'ir.ui.view',
    model: 'fp.partner',
    type: 'tree',

    fields: {
      name: { string: '名称' },
      fapiao_name: { string: '开票名称' },
      shortname: { string: '简称' },
      code: { string: '编码' },
      tin: { string: '税号' },
      phone: { string: '电话' },
      address: { string: '地址' },
      bank_name: { string: '银行名称' },
      acc_number: { string: '银行账号' }
    }
  },

  form_partner: {
    _odoo_model: 'ir.ui.view',
    model: 'fp.partner',
    type: 'form',

    fields: {
      name: { string: '名称' },
      fapiao_name: { string: '开票名称' },
      shortname: { string: '简称' },
      code: { string: '编码' },
      tin: { string: '税号' },
      phone: { string: '电话' },
      address: { string: '地址' },
      bank_name: { string: '银行名称' },
      acc_number: { string: '银行账号' }
    }
  },

  action_partner: {
    _odoo_model: 'ir.actions',
    name: '开票客户',
    type: 'ir.actions.act_window',
    res_model: 'fp.partner',
    domain: [],
    context: {},
    views: {
      tree: 'tree_partner',
      form: 'form_partner'
    }
  }
}
